package org.example.factory;

import org.example.dao.impl.UserDaoImpl;

public class UserDaoFactory01 {

    public static UserDaoImpl getBeanByStatic(String tag){
        UserDaoImpl userDao = new UserDaoImpl();
        userDao.setTag(tag);
        return userDao;
    }

    public UserDaoImpl getBeanByInstance(String tag){
        UserDaoImpl userDao = new UserDaoImpl();
        userDao.setTag(tag);
        return userDao;
    }

}
